import { createRouter,createWebHistory } from "vue-router";
import Happy from "@/components/Happy.vue";
import Hello from "@/components/Hello.vue";
import User from "@/components/User.vue";
import NotFound from "@/components/NotFound.vue";
import Button from "@/components/Button.vue";
export const router =createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/',
            name:'Happy',
            component:Happy
        },
        {
            path:'/gogogo',
            name:'Hello',
            component:Hello
        },
        {
            path:'/user/:id',
            name:'User',
            component:User
        },
        {
            path:'/Button',
            name:'Button',
            component:Button
        },
        {
            path:'/:pathMatch(.*)*',
            component:NotFound
        }
      
    ]
})